package com.yqkj.zysoft.upms.entity.dto;

import  com.project.easy.common.util.constants.CommonConstant;
import  com.project.easy.common.util.constants.CommonIntConstant;
import  com.project.easy.common.util.tree.TreeNode;

/**
* @Author: yangchao.cool
* @Date: 2022/9/12 10:09
 * Description: 功能树
*/
public class FunctionTreeDto extends TreeNode<Long, Long> {
    /**
     * 访问地址
     */
    private String url;
    /**
     * 图标
     */
    private String icon;
    /**
     * 00 菜单 01 接口 02 外部功能
     */
    private String type;

    /**
     * 系统编码
     */
    private String sysCode;

    /**
     * 名称
     */

    private String funcName;

    /**
     * 资源链接编码
     */
    private String funcCode;

    private String funcMethod;

    private String value;

    private String label;

    private Boolean status;

    /**
     * 上级ID
     */
    private Long parentId = CommonConstant.ROOT_ID;
    /**
     * 排序
     */
    private Integer sort = CommonIntConstant.DEFAULT_SORT;

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getLabel() {
        return label;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSysCode() {
        return sysCode;
    }

    public void setSysCode(String sysCode) {
        this.sysCode = sysCode;
    }

    public String getFuncName() {
        return funcName;
    }

    public void setFuncName(String funcName) {
        this.funcName = funcName;
    }

    public String getFuncCode() {
        return funcCode;
    }

    public void setFuncCode(String funcCode) {
        this.funcCode = funcCode;
    }

    public String getFuncMethod() {
        return funcMethod;
    }

    public void setFuncMethod(String funcMethod) {
        this.funcMethod = funcMethod;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    @Override
    public Integer getSort() {
        return sort;
    }

    @Override
    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public FunctionTreeDto(String url, String icon) {
        this.url = url;
        this.icon = icon;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }
}
